using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FeatureClass
{
    /// <summary>
    /// <para>Recalculate Feature Class Extent</para>
    /// <para>Recalculates the XY, Z, and M extent properties of a feature class based on the features in the feature class.</para>
    /// <para>根据要素类中的要素重新计算要素类的 XY、Z 和 M 范围属性。</para>
    /// </summary>    
    [DisplayName("Recalculate Feature Class Extent")]
    public class RecalculateFeatureClassExtent : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RecalculateFeatureClassExtent()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Feature Class</para>
        /// <para>The shapefile or geodatabase feature class that will be updated.</para>
        /// <para>将要更新的 shapefile 或地理数据库要素类。</para>
        /// </param>
        public RecalculateFeatureClassExtent(object _in_features)
        {
            this._in_features = _in_features;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Recalculate Feature Class Extent";

        public override string CallName => "management.RecalculateFeatureClassExtent";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_features];

        /// <summary>
        /// <para>Feature Class</para>
        /// <para>The shapefile or geodatabase feature class that will be updated.</para>
        /// <para>将要更新的 shapefile 或地理数据库要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Updated Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_features { get; set; }


        public RecalculateFeatureClassExtent SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}